package jointPart_3_URLlist;

import java.io.IOException;
import java.util.Scanner;

public class testRunner {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {

		if (args.length != 1) {
			System.err
					.println("Error: Incorrect number of arguments, expected one");
			System.exit(1);
		} 
		
			HTMLlist DataList = new HTMLlist(args[0]);
			Scanner in = new Scanner(System.in);
			System.out.print("Indtast ord: ");
			String word = in.next();
			DataList.print(DataList, word);
		
	}

}
